<!--用户操作弹窗-->
<ng-template #modalContent>
    <form nz-form [formGroup]="dataForm" nzLayout="vertical">
        <div nz-row [nzGutter]="24">
            <div nz-col nzSpan="24">
                <nz-form-label nzRequired>请输入{{userName}}新密码</nz-form-label>
                <nz-form-item>
                    <nz-form-control [nzErrorTip]="errorPwdTpl">
                        <input nz-input [(ngModel)]="entity.password" formControlName="password" placeholder="" />
                        <ng-template #errorPwdTpl let-control>
                            <ng-container *ngIf="control.hasError('required')">用户密码长度必须介于 5 和 20 之间</ng-container>
                            <ng-container *ngIf="control.hasError('minlength')">用户密码长度必须介于 5 和 20 之间</ng-container>
                            <ng-container *ngIf="control.hasError('maxlength')">用户密码长度必须介于 5 和 20 之间</ng-container>
                        </ng-template>
                    </nz-form-control>
                </nz-form-item>
            </div>
        </div>
    </form>
</ng-template>
<ng-template #modalFooter>
    <button nz-button nzType="primary" [disabled]="dataForm.invalid" [nzLoading]="saveLoadingState" (click)="onSave()">
        保存
    </button>
</ng-template>

